package com.lujianfei.business.utils;

import java.util.Random;

public class RandomHelper {
	
	static RandomHelper instance = new RandomHelper();

	public static RandomHelper getInstance() {
		return instance;
	}

	
	Random random;
	
	private RandomHelper() {
		random = new Random(System.currentTimeMillis());
	}
	
	public int randomIn(int min,int max) {
        return random.nextInt((max - min + 1)) + min;
	}
	
	public double gaussion() {
		return random.nextGaussian();
	}
}
